// models/User.js
import mongoose from "mongoose";

const UserSchema = new mongoose.Schema({
  gender: String,
  region: String,
  name: { type: String, required: true, unique: true },
  password: { type: String, required: true },
  isActive: { type: Boolean, default: true },
  createdAt: { type: Date, default: Date.now },
});

const User = mongoose.model("User", UserSchema);

export default User;
